#include "gamesync.h"
#include "ui_gamesync.h"

GameSync::GameSync(QWidget *parent) :
    QFrame(parent),
    ui(new Ui::GameSync)
{
    ui->setupUi(this);
}
GameSync::GameSync(DataModel *model,QWidget *parent) :
    QFrame(parent),
    ui(new Ui::GameSync)
{
    ui->setupUi(this);
    this->model = model;
    ui->le_id_2->setText(QString::number(model->id));
    ui->le_gameName_2->setText(model->gameName);
    ui->le_buildVer_2->setText(QString::number(model->buildVer));
    ui->le_gameVer_2->setText(model->gameVer);

}

GameSync::~GameSync()
{
    delete ui;
}
